﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TinyERP.Framework.Controls
{
    public class MessageBoxHelper
    {
        public static DialogResult ShowError(string msg)
        {
            return MessageBox.Show(msg, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }

        public static DialogResult ShowInformation(string msg)
        {
            return MessageBox.Show(msg, "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }

        public static DialogResult ShowQuestion(string msg)
        {
            return MessageBox.Show(msg, "Confirm message", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
        }
    }
}
